package paul.idtech.lostTraveller.model;

import java.util.Random;

import paul.idtech.lostTraveller.creatures.BaseCreature;
import paul.idtech.lostTraveller.creatures.CreatureGoblin;
import paul.idtech.lostTraveller.creatures.CreatureRat;
import paul.idtech.lostTraveller.creatures.CreatureSpider;
import android.content.Context;
import android.graphics.Bitmap;

public class DungeonRoom {

	//variables
	public BaseCreature creature;
	
	private boolean roomWon;
	
	
	//constructor
	public DungeonRoom(Context context){
		
		roomWon = false;
		Random randomCreature = new Random();
		int selected = randomCreature.nextInt(2);
		if(selected==0){
			
			creature = new CreatureRat(context);
			
		}else if(selected==1){
			
			creature = new CreatureGoblin(context);
			
		}else if(selected==2){
			
			creature = new CreatureSpider(context);
			
		}
			
	}
		
		
		//methods	
	
		//returns roomWon
		public boolean getRoomWon(){
			
			return roomWon;
			
		}
	
		//returns creature image
		public Bitmap getCreatureImage(){
			
			
			return creature.creatureImage;
			
		}
		
	}
	
	
	
	
	

